package com.hl.web;

import com.hl.pojo.Userreviews;
import com.hl.service.UserPinglunService;
import com.hl.util.GeneralResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/UserPl")
public class UserPinglunController {

    @Autowired
    public UserPinglunService userPinglunService;


    @RequestMapping("/USerPlList")
    public GeneralResult UserPlList() {

        List<Userreviews> list = userPinglunService.UserPinglunListAll();

        System.out.println(list);

        return GeneralResult.success(list);

    }


}
